﻿Imports System.Windows.Forms

Public Class DialogPerformanceCounter

    ''' <summary>
    ''' Handles the Ok button
    ''' </summary>
    ''' <param name="sender"></param>
    ''' <param name="e"></param>
    ''' <remarks>
    ''' We're hiding so we can pull off the value of the radio button box from the 
    ''' main form that's calling this.  The main form should handle disposing and
    ''' cleaning up of this form.
    ''' </remarks>
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Hide()
    End Sub

    ''' <summary>
    ''' Handles the cancel button
    ''' </summary>
    ''' <param name="sender"></param>
    ''' <param name="e"></param>
    ''' <remarks>
    ''' We're hiding so we can pull off the value of the radio button box from the 
    ''' main form that's calling this.  The main form should handle disposing and
    ''' cleaning up of this form.
    ''' </remarks>
    Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
        Me.DialogResult = Windows.Forms.DialogResult.Cancel
        Me.Hide()
    End Sub

End Class
